/*
 * @Description: 文件上传模块
 * @Version: 1.0
 * @Author: yxx
 * @Date: 2023-09-22 10:33:21
 * @LastEditors: yxx
 * @LastEditTime: 2024-12-09 14:44:09
 */
import { Upload } from "@/api/interface/index"
import http from "@/api"

// ------------------文件上传模块------------------ //
// 图片上传
export const uploadImgApi = (params: FormData) => {
  return http.post<Upload.ResFileUrl>("/file/upload/img", params, { cancel: false })
}

// 视频上传
export const uploadVideoApi = (params: FormData) => {
  return http.post<Upload.ResFileUrl>("/file/upload/video", params, { cancel: false })
}
